package org.csu.mypetstore.service;

import org.csu.mypetstore.common.CommonResponse;
import org.csu.mypetstore.domain.Cart;
import org.csu.mypetstore.dto.CartDTO;

import java.math.BigDecimal;
import java.util.List;

public interface CartService {
    public CommonResponse<List<Cart>> getCartListByUserId(String userId);
    public CommonResponse<Integer> addCart(String userId, String itemId);
    public CommonResponse<Integer> deleteCart(String userId, String itemId);
    public CommonResponse<Integer> changeCart(String userId, String itemId, int quantity);
    public CommonResponse<Cart> getCartById(String userId, String itemId);
    public BigDecimal getTotalCost(Cart cart);
    BigDecimal getSubCost(List<Cart> cartList);
}